#include<iostream>
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
using namespace std;

int main(int argc,char* argv[],char* env[])
{
  //binstring s = "家目录->";
  //s += getenv("HOME");
  //cout<<s<<endl;
  //for(int i = 0;i < argc;i++)
  //{
    //if(string(argv[i]) == "-a")
    //{
      //cout<<"功能a"<<endl;
    //}
    //else 
    //{
      //if(string(argv[i]) == "-b")
      //{
        //cout<<"功能b"<<endl;
      //}
    //}
  //}
  //for(int i = 0;env[i];i++)
  //{
    //printf("env[%d]->%s\n",i,env[i]);
  //}
  if(argc == 2)
  {
    chdir(argv[1]);
    sleep(10);
  }
  return 0;
}
